package com.financing.wap.service;


 
import java.sql.SQLException;
import java.util.List;

import com.financing.wap.common.ResultMap;
import com.financing.wap.dto.ActivitesDTO;
import com.financing.wap.dto.ActivitesExpandDTO;
import com.financing.wap.dto.UserDTO;

public interface IActivitesService{
 

	/**
	 * 根据活动code查询活动
	 * @param activitesCode
	 * @return
	 */
	public ActivitesDTO searchActivitesByCode(String activitesCode);
	
	/**
	 * 根据活动code 获取扩展表
	 * @param activitesCode
	 * @return
	 */
	public List<ActivitesExpandDTO> searchActivitesExpand(ActivitesExpandDTO bean)
		throws SQLException;
	
	/**
	 * 根据活动code判断当前时间是否过期
	 * @param code
	 * @return
	 */
	public boolean isOutDateByCode(String code);
	
	/**
	 * 当前活动-操作信息
	 * @param code
	 * @return
	 * @throws Exception 
	 */
	public ResultMap operatingActivities(String code,UserDTO user) throws Exception;
	
	/**
	 * 活动任务执行
	 * @param code
	 * @return
	 * @throws Exception 
	 */
	public ResultMap ActivitiesJobExecution(String code) throws Exception;
	
	/**
	 * 活动任务执行(新)
	 * @param code
	 * @return
	 * @throws Exception 
	 */
	public ResultMap ActivitiesJobExecutionObject(String businessType,Object object) throws Exception;
	
}
